package com.co.video.mapper;

import com.co.video.pojo.Category;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author ldl.plus
 * @date 2020年06月22日  0:41
 */
public interface CategoryMapper extends Mapper<Category> {
    @Select("select * from glm_category where parent_id  = ''")
    public List<Category> findCategory();

    @Select("select * from glm_category where parent_id  = #{parent_id}")
    public List<Category> findSubCategory(String parent_id);

}
